package cn.edu.neusoft.yyd208.foodorder.model;

import java.util.List;

import cn.edu.neusoft.yyd208.foodorder.bean.CollectListBean;
import cn.edu.neusoft.yyd208.foodorder.iface.AllCollectIface;
import cn.edu.neusoft.yyd208.foodorder.listener.ListListener;
import cn.edu.neusoft.yyd208.foodorder.service.Service;
import retrofit2.Call;
import retrofit2.Retrofit;



public class AllCollectModel extends RetrofitBaseModel implements AllCollectIface<CollectListBean>{
    private Service service;
    private Retrofit retrofit;
    public AllCollectModel(){
        retrofit=getRetrofit();
        service=getService();
    }
    @Override
    public void getCollect(String user_id, String flag,final ListListener<CollectListBean> listListener) {
        Call<List<CollectListBean>> call = service.showCollectList(user_id,flag);
        callenqueueList(call,listListener);
    }
}
